import request from '@/utils/request'

// 查询题库书籍列表
export function listQbmsBook(query) {
  return request({
    url: '/qbms/qbmsBook/list',
    method: 'get',
    params: query
  })
}

// 查询题库书籍详细
export function getQbmsBook(id) {
  return request({
    url: '/qbms/qbmsBook/' + id,
    method: 'get'
  })
}

// 新增题库书籍
export function addQbmsBook(data) {
  return request({
    url: '/qbms/qbmsBook',
    method: 'post',
    data: data
  })
}

// 修改题库书籍
export function updateQbmsBook(data) {
  return request({
    url: '/qbms/qbmsBook',
    method: 'put',
    data: data
  })
}

// 删除题库书籍
export function delQbmsBook(id) {
  return request({
    url: '/qbms/qbmsBook/' + id,
    method: 'delete'
  })
}
